<?php
class NewsAction extends CommonAction{
	//首页
	public function index(){
		$name	= $this->getActionName();
		$model	= M($name);
		$map["comid"]	= getComid();
		//$map["status"]	= 1;
		$this->_list ( $model, $map );
		$this->display();
	}

	//修改
	public function edit(){
		$name	= $this->getActionName();
		$model	= M($name);
		$id		= $_GET["id"];
		if(intval($id)){
			$vo		= $model->find(intval($id));
			$this->assign("vo",$vo);
		}
		$this->display("edit");
	}

	public function add(){
		$this->edit();
	}



}
?>